package com.dly.blog.mapper;

import com.dly.blog.domain.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 角色 Mapper 接口
 * </p>
 *
 * @author DLY
 * @since 2024-11-11 10:59:37
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> searchAllByUserId(String userId);

    List<String> searchAllRoleCodeByUserId(String userId);

    List<String> searchAllMenuByRoleId(String roleId);

    List<String> searchAllPermissionByRoleId(String roleId);

    String searchHomePage(String roleId);
}
